function AJAXPeriodic(url) {
	this._AJAXForb = new AJAXForbindelse(url);
	this._interval = 0;
	this._lastLog = -1;
	this._timeout = null;
};
AJAXPeriodic.prototype.setSuccessHandler = function(metode) {
	this._AJAXForb.setSuccessHandler(metode);
};
AJAXPeriodic.prototype.setErrorHandler = function(metode) {
	this._AJAXForb.setErrorHandler(metode);
};
AJAXPeriodic.prototype.setInterval = function(timeMS) {
	this._interval = timeMS;
};
AJAXPeriodic.prototype.setLastLog = function(data) {
	this._lastLog = data;
};
AJAXPeriodic.prototype.getLastLog = function() {
	var thisObj = this;
	return thisObj._lastLog;
};
AJAXPeriodic.prototype.start = function() {
	var thisObj = this;
	this._timeout = window.setTimeout(function(){thisObj._AJAXForb.get("loggId="+thisObj._lastLog);}, thisObj._interval);
};
AJAXPeriodic.prototype.stopp = function() {
	window.clearTimeout(this._timeout);
};
